﻿using System;
using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace RealDataReceiver.Entities
{
    public class DeviceMetaData
    {
        [BsonRepresentation(BsonType.ObjectId)]
        [BsonId]
        public string Id { get; set; }
        /// <summary>
        /// Hash(device.Name + para.Name);
        /// Example Hash("14.65"+ "1")
        /// </summary>
        public string Key { get; set; }
        public string LocationId { get; set; }
        public string LocationName { get; set; }
        public string DeviceId { get; set; }
        public string DeviceName { get; set; }
        public string PropertyId { get; set; }
        public string PropertyName { get; set; }
        public string Value { get; set; }

        public string Unit { get; set; }

        public DateTime UpdateTime { get; set; }
        public string Module { get; set; }
    }
}
